<div ng-include="sys_html('common/_header')"></div>
<div class="fui-page order-list-page" ng-if="pagedata.op == 'main'">
	 <div class="jy2-headertopbg" style="background:{{main.syscolor || '#7c1cc9'}}">
			<div class="fui-header" style="background:none">
				<div class="fui-header-left">
					<a class="back" style="color:#fff" href="javascript:" ng-click="goback()"></a>
				</div>
				<div class="title bold" style="font-size:1rem;color:#fff">我的客户</div>
			</div>
	 </div>
	<div class='fui-content order-list jy2-headertop' style="background:#fff">
		 <div class="fui-tab fui-tab-danger" style="top:0.7rem">
			<a ng-class="{'external active':pagedata.params.buystatus == 0}" ng-click="pagedata.params.buystatus = 0;tool.get_list('jy_scrm/member.list/getlist/',true)">未跟进</a>
			<a ng-class="{'external active':pagedata.params.buystatus == 1}" ng-click="pagedata.params.buystatus = 1;tool.get_list('jy_scrm/member.list/getlist/',true)">跟进中</a>
			<a ng-class="{'external active':pagedata.params.buystatus == 2}" ng-click="pagedata.params.buystatus=2;tool.get_list('jy_scrm/member.list/getlist/',true)">已拒绝</a>
			<a ng-class="{'external active':pagedata.params.buystatus == 3}" ng-click="pagedata.params.buystatus=3;pagedata.userdeleted=1;tool.get_list('jy_scrm/member.list/getlist/',true)">已成交</a>
		</div>
		<div style="margin-top:2.7rem;background:#f2f2f2">
		<div class="fui-list-group order-item" ng-repeat="item in pagedata.list">
            <div class="fui-list external" style="padding: 0.42rem 0.5rem" ng-click="access_json('jy_scrm/member.item//id='+item.id)">
                    <div class="fui-list-inner">
                        <div class="subtitle"> 公司: {{item.corp_full_name || '该客户暂未提供公司信息'}}</div>
                    </div>
                    <div class="row-remark gray" style="width: 4rem; font-size: 0.65rem;text-align: right;">{{item.buystatustitle}}</div>
                    <div class="angle"></div>
            </div> 
			<div href="javascript:;" class="external" data-nocache="true" ng-click="access_json('jy_scrm/member.item//id='+item.id)">
							<div class="fui-list goods-list" style="padding-top:0">
								<div class="fui-list-media" style="">
									<img style="border-radius:0.3rem;width: 3rem; height: 3rem;" ng-src="{{tomedia(item.avatar) || '../core/resource/images/nopic.jpg'}}">
								</div>
								<div class="fui-list-inner">
									<div class="text goodstitle towline">{{item.name}}</div>
									<div class="text" style="color:#f60;font-size:0.60rem">{{item.corp_name || '无公司简称'}}</div>
									<div class="text">{{item.mobile || '无手机'}}</div>									
								</div>
							</div>
			</div>
            <div class="fui-list-group-title lineblock opblock">
				<span class="status noremark">
					<div ng-show="item.status == 0" class="btn btn-sm btn-default-o order-delete" href="javascript:;" ng-click="access_json('jy_scrm/member.item//id='+item.id)">点击跟进</div>
				</span>
            </div>
        </div>
		</div>
		<div class="content-empty" ng-show="!pagedata.list || pagedata.list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有客户！</p>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.tool.get_list('jy_scrm/member.list/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_scrm/member.list/getlist/');
}
</script>